﻿<?xml version="1.0" encoding="utf-8" ?>
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.2"
                   assembly="AVTracker"
                   namespace="AVTracker.Models">

  <class name="Vehicle" table="L_SIMAmbulance" lazy="false">
    <id name="VehicleId" column="SIM_ID"/>
  </class>

  <class name="VehicleLocation" table="T_Data" lazy="false">
    <id name="VehicleId" column="SIM_ID"/>
    <property name="Latitude" column="Latitude"/>
    <property name="Longitude" column="Longitude"/>
    <property name="ReceivedAt" column="Rec_Time"/>
  </class>

</hibernate-mapping>